package domain;

import domain.exceptions.*;

/**
 *
 * @author shaigi
 */
public class SquareFlag extends Square{
    
    private int _cost;
        
    public SquareFlag(int row, int column, int cost){
        setRow(row);
        setColumn(column);
        this._cost = cost;
    }
    
    @Override
    public String toString(){
        return "Flag Square "+toStringLocation();
    }

    @Override
    public void placeAgent(Agent agent) throws CannotPlaceAgentHereException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    int getCost() {
        return this._cost;
    }
}
